< previous page page_755 next page >

Page 755
Whats the problem with the LostFocus() event?
Answer: Deadly embrace can lock up the user.
What does the CausesValidation property do?
Answer: Allows the user to click another control without firing the Validate event on the previous control when this property is set to False.
Which function would you use to display a currency value?
Answer: FormatCurrency().
Which function would you use to display a date value?
Answer: FormatDateTime().
Chapter 24: ActiveX Data Objects
Do you need a Connection object to establish a connection?
Answer: No, you can pass a connection string to a Recordset object.
Name two different types of cursors that ADO supports.
Answer: Forward only, dynamic, static, and keyset.
What are the properties of the ADO Error object?
Answer: Description, NativeError, Number, Source, and SQLState.
Why would you use a Command object?
Answer: To pass in parameters and receive output parameters from a stored procedure, to reexecute a query, to execute the same query on different connections, or to create prepared statements.
Chapter 25: Data Entry with ADO Objects
What do you use the ItemData property for?
Answer: Storing a long integer (generally as a primary key for a table).
How do you delete a row using ADO?
Answer: Use the Delete method.

 
< previous page page_755 next page >

If you like this book, buy it!